﻿namespace DevBox
{
    public class DevBoxException:Exception
    {
        /// <summary>
        /// 错误代码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 错误消息
        /// </summary>
        public string? Message { get; set; }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="code"></param>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public DevBoxException(string code,string? message, Exception? innerException) 
            :base(message,innerException)
        {
            Code = code;
            Message = message;
        }
            
    }
}
